import {
    http4
} from "@/service/axios";

// 班组列表
export function getTeam(data) {
    return http4.post({
        url: "/road/teamGroup/list/page",
        data,
    });
}

// 班组状态
export function getTeamStatus(data) {
    return http4.post({
        url: `/road/teamGroup/edit/${data.teamId}/${data.status}`,
        data,
    });
}

// 删除班组
export function getDeleteTeam(data) {
    return http4.post({
        url: `/road/teamGroup/remove/${data}`,
        data,
    });
}

// 新增班组
export function getAddTeam(data) {
    return http4.post({
      url: "/road/teamGroup/add",
      data,
    });
}
  
// 编辑班组
export function getEditTeam(data) {
    return http4.post({
      url: "/road/teamGroup/edit",
      data,
    });
}
  
// 根据班组获取成员列表（已绑和可绑）接口
export function getMebList(data) {
    return http4.get({
      url: `/road/teamGroup/meb/list/${data}`,
      data,
    });
}
  

// 班组绑定路段或成员接口
export function getBind({ target, teamId, data }) {
    return http4.post({
      url: `/road/teamGroup/bind/${target}/${teamId}`,
      data,
    });
}
  
// 根据班组获取路段列表（已绑和可绑）接口
export function getSectionList(data) {
    return http4.get({
      url: `/road/teamGroup/section/list/${data}`,
      data,
    });
  }